package com.usian.user.feign;

import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "leadnews-wemedia")
@RequestMapping("/api/v1/user")
public interface WmUserFeign {
    @PostMapping("/save")
    public WmUser saveWmUser(@RequestBody WmUser wmUser);
    @GetMapping("/findByName/{name}")
    public WmUser findByName(@PathVariable String name);
}
